package com.ericsson.mhealth.client.events;

import com.ericsson.mhealth.client.handlers.OpenWindowHandler;
import com.google.gwt.event.shared.GwtEvent;

public class OpenWindowEvent extends GwtEvent<OpenWindowHandler> {

	private static Type<OpenWindowHandler> TYPE;
	
	public static Type<OpenWindowHandler> getType() {
		return TYPE != null ? TYPE : (TYPE = new Type<OpenWindowHandler>());
	}
	
	@Override
	protected void dispatch(OpenWindowHandler handler) {
		handler.onWindowOpen(this);		
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<OpenWindowHandler> getAssociatedType() {
		return getType();
	}

}
